<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MenuHeader
 *
 * @author julien
 */
require_once 'Classes/View/AbstractedViewItems/Menu.php';
require_once 'Classes/View/ViewItems/ComposedViewItem.php';
require_once 'Classes/View/ViewItems/LinkItem.php';
require_once 'Classes/View/ViewItems/ImgItem.php';
require_once 'Classes/View/ViewItems/DelimitorItem.php';



class MenuHeader extends ComposedViewItem {
    public function __construct() {
        parent::__construct();
        $banner = new LinkItem('/', new ImgItem('/Ressources/header.jpeg', "Header", 573, 148));
    
    
        $leftMenu = new Menu(array(  new LinkItem("#", "Families"), 
                        new LinkItem("#","SubFamilies"),
                        new LinkItem("/articles/", "Articles"),
                        new LinkItem("/loans/", "Loans"),
                        new LinkItem("/clients", "Clients")
                     ));
    
    $rightMenu = new Menu(array( new LinkItem("#", "Users"), 
                        new LinkItem("/structures/","Structures"),
                      ));
    
    $leftMenu->setClass("MenuG");
    $rightMenu->setClass("MenuD");
    
   
    
    $this->setClass("header");
 
    $this->addElement($banner);
    
    $menu =new composedViewItem(); 
    $menu->setClass("menu");
    
    $menu->addElement($leftMenu);
    $menu->addElement($rightMenu);
    
    $this->addElement($menu);
    $this->addElement(new DelimitorItem());
    
    }
    
}

?>
